<?php
/**
 * @author Nguyễn Sơn Tùng <sontung.x305@gmail.com> <Y!M: terminator_nst> <Skype : joker.x305>
 * @version: 1.0
 * @copyright fteam.vn
 * Date: 30/01/2013
 * Time: 18:26
 */
$this->widget('bootstrap.widgets.TbDetailView', array(
    'data'=>$model,
    'type'=>'striped bordered condensed',
    'attributes'=>array(
        'id',
        'name',
        'slug',
        'meta_keyword',
        'meta_description',
        'meta_robots',
        'meta_revisit_after',
        //'left_id',
        //'right_id',
        'num_views',
        array(
            'name'=>'is_active',
            'value'=>$model->is_active == 1?'Active':'Deactivate',
        ),
        array(
            'name'=>'created_date',
            'value'=>$model->created_date?date("d-m-Y H:i:s", $model->created_date):null,
        ),
        array(
            'name'=>'modified_date',
            'value'=>$model->modified_date?date("d-m-Y H:i:s", $model->modified_date):null,
        ),
        array(
            'name'=>'user_id_create',
            'label'=>t('Create by','category'),
            'value'=>$model->user->username,
        ),
        'language',
        array(
            'name'=>'image_large',
            'type'=>'raw',
            'value'=>html_entity_decode(CHtml::image($model->image_large,'Image thumbnail',array('width'=>200))),
        )
    ),
));
?>

